package server.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import server.demo.entity.FileData;
import server.demo.mapper.FileMapper;
import server.demo.service.FileService;
@Service
public class FileServiceImpl implements FileService {
    @Autowired
    private FileMapper fileMapper;


    @Override
    public FileData getFileInfo(String uuid) {
        FileData fileData = fileMapper.queryFileById(uuid);
        return fileData;
    }

    @Override
    public void saveFile(FileData file) {
        fileMapper.addFile(file);
    }
}
